﻿// Copyright 2010 Maxime Serrano <lastchronicler@gmail.com>
using System;
using System.IO;

namespace ForgeCraft.Network.Handlers
{
    class InteractionHandler : PacketHandler
    {
        #region PacketHandler Members

        public void Handle(BinaryReader reader, Session session, Player player)
        {
            InventoryItem i = player.Inventory.slots[36 + player.SlotSelected];

            int entityFrom = PacketWriter.SwapEndian(reader.ReadUInt32());
            int entityTo = PacketWriter.SwapEndian(reader.ReadUInt32());
            byte rclick = reader.ReadByte();

            //Logger.Log(player.name + " hit " + entityFrom + " with " + i + " Target: " + entityTo + " RC: " + rclick, LogType.Debug);

            return;
        }

        #endregion
    }
}
